package com.oss.mq.controller;

import com.oss.mq.common.ResponseBean;
import com.oss.mq.entity.pojo.ServiceRegister;
import com.oss.mq.service.IServiceRegisterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Author yaoyaoyao
 * Date 2024/7/17 15:20
 */
@RestController
public class ServiceRegisterController {
    @Autowired
    IServiceRegisterService registerService;

    @PostMapping("register")
    public ResponseBean register(ServiceRegister register){
        return ResponseBean.success(registerService.addRegister(register));
    }
}
